<?php /* Smarty version 2.6.26, created on 2012-08-18 13:36:13
         compiled from /usr/local/zend/apache2/htdocs/markt/templates/EyeCandy/boxes/box_categories_top.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'load_language_text', '/usr/local/zend/apache2/htdocs/markt/templates/EyeCandy/boxes/box_categories_top.html', 1, false),array('modifier', 'count', '/usr/local/zend/apache2/htdocs/markt/templates/EyeCandy/boxes/box_categories_top.html', 6, false),)), $this); ?>
<?php echo smarty_function_load_language_text(array('section' => 'box_categories_top'), $this);?>


<div id="head_navi" class="gradient">
	<ul class="clearfix">
		<?php $_from = $this->_tpl_vars['content_data']['CATEGORIES_DATA']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['cat_data'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['cat_data']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['categories_item']):
        $this->_foreach['cat_data']['iteration']++;
?>
		<li<?php if (count($this->_tpl_vars['categories_item']['children']) > 0): ?> id="megadropdown_top_link_id_<?php echo $this->_tpl_vars['categories_item']['data']['id']; ?>
"<?php endif; ?> class="megadropdown_top_link <?php if (($this->_foreach['cat_data']['iteration'] <= 1)): ?>first<?php elseif (($this->_foreach['cat_data']['iteration'] == $this->_foreach['cat_data']['total'])): ?>last<?php endif; ?>">
			<h3>
				<a href="<?php echo $this->_tpl_vars['categories_item']['data']['url']; ?>
" rel="<?php echo $this->_tpl_vars['categories_item']['data']['id']; ?>
"><?php echo $this->_tpl_vars['categories_item']['data']['name']; ?>
<?php if ($this->_tpl_vars['categories_item']['data']['products_count']): ?> (<?php echo $this->_tpl_vars['categories_item']['data']['products_count']; ?>
)<?php endif; ?></a>
			</h3>
		</li>
		<?php endforeach; endif; unset($_from); ?>
	</ul>
</div>